"""
  raise 手动抛出异常
"""

try:
    pwd = input("请输入你的密码：")
    if len(pwd) < 8:
        raise Exception("密码不符合规范")
except Exception as e:
    print(e)
